package com.swallow.weixin.enums;

public enum GlobalEnum {
    /**
     * 系统错误
     */
    SYSTEM_ERROR(1001,"系统错误"),
    /**
     * 添加成功
     */
    INSERT_SUCCESS(1002,"添加成功"),
    /**
     * 修改成功
     */
    UPDATE_SUCCESS(1003,"修改成功"),
    /**
     * 删除成功
     */
    DELETE_SUCCESS(1004,"删除成功"),
    /**
     * 操作成功
     */
    OPRATE_SUCCESS(1005,"操作成功"),
    /**
     * 操作错误
     */
    OPERATE_ERROR(1006,"操作错误")
    ;

    private int code;

    private String message;

    GlobalEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
